<?php

/**
 * @author Do Van Tien
 * @copyright 2013
 */
echo '<pre>',print_r($_SERVER['HTTPS']),'</pre>';
 
if (empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') {
    echo "SSL is on";
}

?>